<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/6/27
 * Time: 13:35
 */

namespace common\components\behaviors;


use doumiaoduo\ftp\FtpManage;
use yii\base\Behavior;

class FtpFailedBehavior extends Behavior{
    public function events()
    {
        return [
            FtpManage::FTP_FAILED => 'failed',
        ];
    }
    public  function failed($event){
        return $event->errorInfo.':原路径'.$event->Path.',新路径'.$event->newPath;
    }

}